/**
 * 
 */
package design_pattern.strategy;

/**
 * @author linzq
 * 
 */
public class FlatRateDiscountStrategy extends DiscountStrategy {

  private short amount = 0;

  /**
   * @param price
   * @param copies
   */
  public FlatRateDiscountStrategy(double price, int copies) {
    super(price, copies);
  }

  @Override
  public double calculateDiscount() {
    return amount * copies;
  }

  public short getAmount() {
    return amount;
  }

  public void setAmount(short amount) {
    this.amount = amount;
  }

}
